<?php

header('Content-Type:text/html; Charset=utf-8');
$z=$_POST['z'];
$m=$_POST['m'];

$a2=new PDO('mysql:dbname=zc;charset=UTF8','root');
$s2=$a2->prepare('insert into aa (z,m) values(:z,:m);');
$t1=$s2->execute(array('z'=>$z,'m'=>$m));
if($t1){
	echo "注册成功！三秒后返回登录!"; 
	header('Refresh:3;url=z1.php');
}else{ 
	echo "注册失败！三秒后返回注册！";
	header('Refresh:3;url=zc.php');
}
echo "<br />";
?>